function shot(arrs) {
    arrs.sort((a, b) => a[1] - b[1]);
    let count = 1;
    let max = arrs[0][1]
    for (let i = 0; i < arrs.length; i++) {
        if(max < arrs[i][0]){
            count++;
            max = arrs[i][1]
        }
    }
    return count;

}